﻿using System.Linq;
namespace MMS.Respository
{

    public partial class Level : BaseRespository<Model.Level>, IRespository.ILevel
    {
        public new  void Modify(Model.Level Model, params string[] updateProperties)
        {
            var model=EFFatory.db.Set<Model.Level>().Where(o => o.LId == Model.LId).FirstOrDefault();
            model.LName = Model.LName;
            model.LRemark = Model.LRemark;
            model.LUpGradeAmount = Model.LUpGradeAmount;
            model.LIntegralRatio = Model.LIntegralRatio;
            model.LDiscount = Model.LDiscount;
            EFFatory.db.SaveChanges();


        }
    }
}
